<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
    <head>
        <title>DriveNotes::Вход</title>
        <link href="css/style.css" rel="stylesheet" type="text/css"/>
        <script src="js/jquery.js"></script>
        <script>
            $(function() {
                $("#username").focus();
            })
        </script>
    </head>
    <body>
        <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>&nbsp;</td>
                <td width="750" valign="top">
                    <table width="750" height="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td height="1">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td valign="top" background="images/p1-bg.jpg" class="norepeat">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td><img src="images/spacer.gif" alt="" width="1" height="46"/></td>
                                                    <td>&nbsp;</td>
                                                    <td>&nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td width="1"><img src="images/spacer.gif" width="17" height="1"/></td>
                                                    <td width="1"><img src="images/logo.jpg" alt="" width="50" height="51"/></td>
                                                    <td class="c_name">DriveNotes::Вход</td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="1"><img src="images/p2.jpg" alt="" width="331" height="255"/></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td height="100%" valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td width="1" valign="top"><img src="images/spacer.gif" alt="" width="9" height="1"/></td>
                                        <td height="100%" valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td background="images/menu-1-bg.gif" class="norepeat"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td width="1"><img src="images/menu-bullet.gif" alt="" width="36" height="30"/></td>
                                                                <td class="menu"><a href="controller?act=garage" class="menu_lnk">Гараж</a></td>
                                                            </tr>
                                                        </table></td>
                                                </tr>
                                                <tr>
                                                    <td><img src="images/menu-sep.gif" alt="" width="181" height="1"/></td>
                                                </tr>
                                                <tr>
                                                    <td background="images/menu-2-bg.gif" bgcolor="#3F3F3F" class="norepeat"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td width="1"><img src="images/menu-bullet.gif" alt="" width="36" height="30"/></td>
                                                                <td class="menu"><a href="controller?act=service" class="menu_lnk">Сервис</a></td>
                                                            </tr>
                                                        </table></td>
                                                </tr>
                                                <tr>
                                                    <td bgcolor="#3F3F3F"><img src="images/menu-sep.gif" alt="" width="181" height="1"/></td>
                                                </tr>
                                                <tr>
                                                    <td bgcolor="#3F3F3F"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td width="1"><img src="images/menu-bullet.gif" alt="" width="36" height="30"/></td>
                                                                <td class="menu"><a href="controller?act=filling" class="menu_lnk">Заправка</a></td>
                                                            </tr>
                                                        </table></td>
                                                </tr>
                                                <tr>
                                                    <td bgcolor="#3F3F3F"><img src="images/menu-sep.gif" alt="" width="181" height="1"/></td>
                                                </tr>
                                                <tr>
                                                    <td bgcolor="#3F3F3F"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td width="1"><img src="images/menu-bullet.gif" alt="" width="36" height="30"/></td>
                                                                <td class="menu"><a href="controller?act=notes" class="menu_lnk">Заметки</a></td>
                                                            </tr>
                                                        </table></td>
                                                </tr>
                                                <tr>
                                                    <td bgcolor="#3F3F3F"><img src="images/menu-sep.gif" alt="" width="181" height="1"/></td>
                                                </tr>
                                                <tr>
                                                    <td bgcolor="#3F3F3F"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td width="1"><img src="images/menu-bullet.gif" alt="" width="36" height="30"/></td>
                                                                <td class="menu"><a href="controller?act=places" class="menu_lnk">Места</a></td>
                                                            </tr>
                                                        </table></td>
                                                </tr>
                                                <tr>
                                                    <td bgcolor="#3F3F3F"><img src="images/menu-sep.gif" alt="" width="181" height="1"/></td>
                                                </tr>
                                                <tr>
                                                    <td bgcolor="#3F3F3F"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td width="1"><img src="images/menu-bullet.gif" alt="" width="36" height="30"/></td>
                                                                <td class="menu"><a href="controller?act=statistic" class="menu_lnk">Статистика</a></td>
                                                            </tr>
                                                        </table></td>
                                                </tr>
                                                <tr>
                                                    <td><img src="images/menu-sep.gif" alt="" width="181" height="1"/></td>
                                                </tr>
                                                <c:if test="dn/objects/object[@name='authorizedUser']">
                                                    <tr>
                                                        <td bgcolor="#3F3F3F"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                <tr>
                                                                    <td width="1"><img src="images/menu-bullet.gif" alt="" width="36" height="30"/></td>
                                                                    <td class="menu"><a href="controller?act=logout" class="menu_lnk">Выход</a></td>
                                                                </tr>
                                                            </table></td>
                                                    </tr>
                                                    <tr>
                                                        <td><img src="images/menu-sep.gif" alt="" width="181" height="1"/></td>
                                                    </tr>
                                                </c:if>
                                                <tr>
                                                    <td height="100%" bgcolor="#3f3f3f">&nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td background="images/menu-bot-bg.gif" class="bgx"><img src="images/menu-bot-bg.gif" width="1" height="97"/></td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="1" valign="top">
                                            <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td><img src="images/c-top.jpg" alt="" width="560" height="17"/></td>
                                                </tr>
                                                <tr>
                                                    <td><h1>DriveNotes::Вход</h1></td>
                                                </tr>
                                                <tr>
                                                    <td height="100%" class="body_txt">
                                                        <p>
                                                            <c:if test="${not empty error}">
                                                            <p style="color:red;">Ошибка: пользователя с такой парой логин/пароль не найдено</p>
                                                        </c:if>
                                                        <form action="controller?act=login" method="post">
                                                            <table width="200" border="0" cellspacing="0" cellpadding="0">
                                                                <tr>
                                                                    <td>Логин: </td><td><input type="text" class="input_field" id="username" tabindex="1" name="username" /></td>
                                                                    <td>&nbsp;</td>
                                                                    <td>Пароль: </td><td><input type="password" class="input_field" tabindex="2" name="password"/></td>
                                                                    <td>&nbsp;</td><td><input type="submit" tabindex="3" class="submit_btn" value="Войти"/></td>
                                                                </tr>
                                                            </table>
                                                        </form>
                                                        </p>
                                                        <p><a href="controller?act=register">Зарегистрируйтесь</a>, если у вас еще нет аккаунта.</p>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table></td>
                        </tr>
                        <tr>
                            <td height="1" background="images/bottom-bg.jpg" class="norepeat"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <td>&nbsp;</td>
                                    <tr>
                                        <td class="bottom_addr">2011 DriveNotes (c).</td>
                                    </tr>
                                </table></td>
                        </tr>
                    </table>
                </td>
                <td>&nbsp;</td>
            </tr>
        </table>
    </body>
</html>

